package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_vote table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_vote"
 */

public abstract class BaseTJesVote  implements Serializable {

	public static String REF = "TJesVote";
	public static String PROP_STATUS = "Status";
	public static String PROP_VOTENUM = "Votenum";
	public static String PROP_RECORDTIME = "Recordtime";
	public static String PROP_SUBJECT = "Subject";
	public static String PROP_BEGTIME = "Begtime";
	public static String PROP_USERID = "Userid";
	public static String PROP_CONTENT = "Content";
	public static String PROP_ID = "Id";
	public static String PROP_ENDTIME = "Endtime";


	// constructors
	public BaseTJesVote () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesVote (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String subject;
	private java.lang.String content;
	private java.lang.String status;
	private java.lang.String userid;
	private java.lang.Integer votenum;
	private java.util.Date recordtime;
	private java.util.Date begtime;
	private java.util.Date endtime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: SUBJECT
	 */
	public java.lang.String getSubject () {
		return subject;
	}

	/**
	 * Set the value related to the column: SUBJECT
	 * @param subject the SUBJECT value
	 */
	public void setSubject (java.lang.String subject) {
		this.subject = subject;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: VOTENUM
	 */
	public java.lang.Integer getVotenum () {
		return votenum;
	}

	/**
	 * Set the value related to the column: VOTENUM
	 * @param votenum the VOTENUM value
	 */
	public void setVotenum (java.lang.Integer votenum) {
		this.votenum = votenum;
	}



	/**
	 * Return the value associated with the column: RECORDTIME
	 */
	public java.util.Date getRecordtime () {
		return recordtime;
	}

	/**
	 * Set the value related to the column: RECORDTIME
	 * @param recordtime the RECORDTIME value
	 */
	public void setRecordtime (java.util.Date recordtime) {
		this.recordtime = recordtime;
	}



	/**
	 * Return the value associated with the column: BEGTIME
	 */
	public java.util.Date getBegtime () {
		return begtime;
	}

	/**
	 * Set the value related to the column: BEGTIME
	 * @param begtime the BEGTIME value
	 */
	public void setBegtime (java.util.Date begtime) {
		this.begtime = begtime;
	}



	/**
	 * Return the value associated with the column: ENDTIME
	 */
	public java.util.Date getEndtime () {
		return endtime;
	}

	/**
	 * Set the value related to the column: ENDTIME
	 * @param endtime the ENDTIME value
	 */
	public void setEndtime (java.util.Date endtime) {
		this.endtime = endtime;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesVote)) return false;
		else {
			com.lovejes.app.domain.TJesVote tJesVote = (com.lovejes.app.domain.TJesVote) obj;
			if (null == this.getId() || null == tJesVote.getId()) return false;
			else return (this.getId().equals(tJesVote.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}